﻿<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%template _header%>

<div class="layout-cols2">

<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
	     <%template _memrecordermenu%>
	     	
			<div class="pannelbody">
	
		    <%csharp%>if( IsPost){ <%/csharp%>
	    
	    <%template _MsgBox%>
	    
	    <%csharp%> } else { <%/csharp%>
	    
	    <div class="box">
	        <div class="caption">
	            治疗开始使用
	        </div>
	        <div class="content">
	            <br />
	            <p>{_presInfo.Name}</p>
	            <br />
	            <form id="trmform" name="trmform" method="post" action="">
	                
	             <table class="table-box" width="700px">
	                <tbody>
	                <tr>
                        <td class="table-box-left">开始日期</td>
	                    <td class="table-box-right">
	                        <input class="box-var validate-date" id="startdate" maxlength="10" size="10" name="startdate" style="vertical-align:middle;"
                                         />
                                    <a class="no-hover" id="buttonDate" title="Click on this to open the calendar, Use the arrow keys to move through dates" style="vertical-align:middle"
                                        href="#">
                                        <img class="icon-cal" alt="日期" src="/support/alpha/images/calendar/calendar-icon_calendar.png" />
                                    </a>
                                    <script type="text/javascript">
                                         Calendar.setup({inputField: 'startdate', ifFormat: '%Y-%m-%d', button: 'buttonDate'}) 
                                    </script>
                                    <em class="helptext">格式：年-月-日(1970-03-08)</em>
	                    </td>
	                 </tr>
	                  <tr>
                        <td class="table-box-left">停止日期</td>
	                    <td class="table-box-right">
	                    <input class="box-var validate-date" id="enddate" maxlength="10" size="10" name="enddate" style="vertical-align:middle;"
                                         />
                                    <a class="no-hover" id="buttonDateEnd" title="Click on this to open the calendar, Use the arrow keys to move through dates" style="vertical-align:middle"
                                        href="#">
                                        <img class="icon-cal" alt="日期" src="/support/alpha/images/calendar/calendar-icon_calendar.png" />
                                    </a>
                                    <script type="text/javascript">
                                         Calendar.setup({inputField: 'enddate', ifFormat: '%Y-%m-%d', button: 'buttonDateEnd'}) 
                                    </script>
                                    <em class="helptext">格式：年-月-日(1970-03-08)</em>（不填表示正在使用）
	                    </td>
	                 </tr>
	                 
	                 <tr valign="top">
                         <td class="table-box-left">使用目的</td>
                         <td class="table-box-right">
                           <select name="usepurpose" id="usepurpose">
                                <%csharp%>for(int i=0; i < Constants.TreatmentPurpose.Length; i ++) { <%/csharp%>
                                    <option value="{i}">{Constants.TreatmentPurpose[i]}</option>
                                <%csharp%> } <%/csharp%>
                            </select>
	                     </td>
    	            </tr>
    	            <tr>
    	                <td class="table-box-left"></td>
    	                <td class="table-box-right"> 
    	                    
	                            <a href="#" onclick="CheckForm();" class="yellowbutton">提交</a>
                           
                        </td>
    	            </tr>   
	                </tbody>
	                </table>             
	            </form>
	            <script type="text/javascript">
                    function CheckForm()
                    {
                        _$('trmform').submit();
                    }
	                	                
	            </script>
	            <br />
	        </div>
	    </div>
	    
	    <%csharp%> } <%/csharp%>
	</div>
	
	</div>
	</div>
	</div>	
	
</div>

<%template _footer%>